package com.ytjj.qmyx.users.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class UsersRpc implements Serializable {
    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 手机号
     *
     * @mbg.generated
     */
    private String tel;

    /**
     * 账号
     *
     * @mbg.generated
     */
    private String account;

    /**
     * 密码
     *
     * @mbg.generated
     */
    private String pwd;

    /**
     * 昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 注册来源 android、ios、h5、wx
     *
     * @mbg.generated
     */
    private String source;

    /**
     * wx unionid
     *
     * @mbg.generated
     */
    private String wxUnionid;

    /**
     * 小程序 openid
     *
     * @mbg.generated
     */
    private String wxOpenid;

    /**
     * App openid
     *
     * @mbg.generated
     */
    private String appOpenid;

    /**
     * ios id
     *
     * @mbg.generated
     */
    private String iosId;

    private String token;

    /**
     * 用户状态 1 正常 2停用 3 未注册
     *
     * @mbg.generated
     */
    private Byte status;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tel=").append(tel);
        sb.append(", account=").append(account);
        sb.append(", pwd=").append(pwd);
        sb.append(", nickname=").append(nickname);
        sb.append(", source=").append(source);
        sb.append(", wxUnionid=").append(wxUnionid);
        sb.append(", wxOpenid=").append(wxOpenid);
        sb.append(", appOpenid=").append(appOpenid);
        sb.append(", iosId=").append(iosId);
        sb.append(", token=").append(token);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}